package com.qkjia.day02;
//懒汉式
public class Test01_Singleton02 {
    private Test01_Singleton02(){
    }
    private static Test01_Singleton02 instance=null;
    public static Test01_Singleton02 getInstance(){
        if(instance==null){
            instance=new Test01_Singleton02();
        }
        return instance;
    }
}
